package tableDancer;

public class ListeA {
	
	private int list_a_id;
	private int tier_a_id;
	private int revier_id;
	private String datum;
	private double gewicht;
	private String bemerkung;
	private String tier_a_name;
	private Todesart todesart;
	
	
	
	public ListeA(int tier_a_id, int revier_id, String datum,
			double gewicht, String bemerkung, Todesart todesart) {
		super();
		this.tier_a_id = tier_a_id;
		this.revier_id = revier_id;
		this.datum = datum;
		this.gewicht = gewicht;
		this.bemerkung = bemerkung;
		this.todesart = todesart;
	}
	
	public ListeA(String tier_a_name, String datum, double gewicht, String bemerkung){
		super();
		this.tier_a_name = tier_a_name;
		this.datum = datum;
		this.gewicht = gewicht;
		this.bemerkung = bemerkung;
	}
	
	public ListeA(int list_a_id, String tier_a_name, String datum, double gewicht, String bemerkung, Todesart todesart){
		super();
		this.list_a_id = list_a_id;
		this.tier_a_name = tier_a_name;
		this.datum = datum;
		this.gewicht = gewicht;
		this.bemerkung = bemerkung;
		this.todesart = todesart;
	}
	
	public String getTier_a_name() {
		return tier_a_name;
	}

	public String getDatum() {
		return datum;
	}
	public void setDatum(String datum) {
		this.datum = datum;
	}
	public double getGewicht() {
		return gewicht;
	}
	public void setGewicht(double gewicht) {
		this.gewicht = gewicht;
	}

	public String getBemerkung() {
		return bemerkung;
	}
	public void setBemerkung(String bemerkung) {
		this.bemerkung = bemerkung;
	}
	public int getTier_a_id() {
		return tier_a_id;
	}
	public int getRevier_id() {
		return revier_id;
	}
	public int getList_a_id() {
		return list_a_id;
	}
	public Todesart getTodesart() {
		return todesart;
	}

	public void setTodesart(Todesart todesart) {
		this.todesart = todesart;
	}

	public String toString(){
		//return tier_a_id + " | " + revier_id + " | " + datum + " | " + gewicht + " | " + bemerkung;
		
		String ret = getTier_a_name()+" - "+getDatum()+" - "+getGewicht()+" - "+getTodesart().toString();
		if(!getBemerkung().equals("")){
		ret += " - "+getBemerkung();
		}
		return ret;
	}

}
